import { Controller,Get, Post,Body,Query,UseGuards } from '@nestjs/common';
import {MenuService} from './menu.service'
import { AuthGuard } from '@nestjs/passport'
// import { Controller, Request, Get, UseGuards } from '@nestjs/common'
@Controller('menu')
@UseGuards(AuthGuard('jwt'))
export class MenuController {
    constructor(private readonly MenuService:MenuService){

    }

    @Get('list')
    async list(){
        let list=await this.MenuService.list()

        return {code:0,list}
    }


}
